package org.elanfox.intellicommunity.msg.ienum;

import org.elanfox.intellicommunity.common.ienum.base.CodeDescCommonEnum;

/**
 * 命令代码
 *
 * @author allan
 * @version 1.0.0
 * @date 2020/1/6
 */
public enum CmdCodeEnum implements CodeDescCommonEnum {
    /**
     * 清楚标签数据
     */
    CLEAR_TAG("03", "清楚标签数据"),
    /**
     * 心跳
     */
    HEART_BEAT("05", "心跳"),
    /**
     * 时间校验
     */
    TIME_VERIFY("06", "时间校验"),
    /**
     * 获取标签数据
     */
    GET_TAG("07", "获取标签数据"),
    /**
     * 上传标签数据
     */
    UPLOAD_TAG("08", "上传标签数据"),
    NAME("41", "设置设备名称"),
    NET("42", "设置设备网络参数"),
    NET_COMMUNICATION("43", "设置设备网络通信参数"),
    LF_SCOPE("48", "设置低频参数"),
    BUZZER_STATUS("4B", "设置设备蜂鸣器状态"),
    DEVICE_ADDR("51", "设置设备地址"),
    FILTER_WAITING_TIME("53", "设置设备过滤等待时间"),
    REBOOT("91", "设备重启");


    private String code;
    private String desc;

    CmdCodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
